<!DOCTYPE html>
<html lang="zh_CN">
<head>
	<meta charset="utf-8">
	<title><?php echo $title ?></title>
	<link rel="icon" href="favicon.ico" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="/css/style.css">
</head>
<body>
<div id="container">
<h1 class="header">成本收益调查问卷</h1>
<div id="body">
	<? echo form_open('survey/create'); ?>
		<div class="q-div" name="location_description">
			<div class="q-title">详细地址：省 市 县 乡（镇） 村</div>
			<? $input_location_description = array(
											'name' => 'location_description',
											'value' => trim(set_value('location_description')),
											'size' => '30',
											'class' => 'q-text',
											'id' => 'location_description_input');
				echo form_input($input_location_description); ?>
		</div>

		<div class="q-div" name="station_description">
			<div class="q-title">试验站名称</div>
			<? $input_station_description = array(
											'name' => 'station_description',
											'value' => trim(set_value('station_description')),
											'size' => '30',
											'class' => 'q-text',
											'id' => 'station_description_input');
				echo form_input($input_station_description); ?>
		</div>

		<div class="q-div" name="total_area">
			<div class="q-title">葡萄园种植总面积</div>
			<? $input_total_area = array(
											'name' => 'total_area',
											'value' => trim(set_value('total_area')),
											'size' => '8',
											'class' => 'q-text',
											'id' => 'total_area_input');
				echo form_input($input_total_area); ?>
			亩
		</div>
<!-- 建园成本 -->
		<div class="q-div" name="vineyard_built_info">
			<div class="q-title">建园情况调研</div>
				<div id="built_in" class="sub-q">
				葡萄园建立年份: 
				<? $input_built_in = array(
												'name' => 'built_in',
												'value' => trim(set_value('built_in')),
												'size' => '5',
												'class' => 'q-text',
												'id' => 'built_in_input');
					echo form_input($input_built_in); ?>
				</div>		

			<div class="sub-q" id="vineyard_lifetime">
				葡萄园预计使用年限: 
				<? $input_vineyard_lifetime = array(
												'name' => 'vineyard_lifetime',
												'value' => trim(set_value('vineyard_lifetime')),
												'size' => '5',
												'class' => 'q-text',
												'id' => 'vineyard_lifetime_input');
					echo form_input($input_vineyard_lifetime); ?>
			</div>

			<div class="sub-q" id="cost_built_meterials">
				建园物质成本: 
				<? $input_cost_built_meterials = array(
												'name' => 'cost_built_meterials',
												'value' => trim(set_value('cost_built_meterials')),
												'size' => '8',
												'class' => 'q-text',
												'id' => 'cost_built_meterials_input');
					echo form_input($input_cost_built_meterials); ?>
			</div>

			<div class="sub-q" id="cost_built_labor">
				建园人力成本: 
				<? $input_cost_built_labor = array(
												'name' => 'cost_built_labor',
												'value' => trim(set_value('cost_built_labor')),
												'size' => '8',
												'class' => 'q-text',
												'id' => 'cost_built_labor_input');
					echo form_input($input_cost_built_labor); ?>
			</div>
		</div>
<!-- 物质成本 -->
		<div class="q-div" name="current_year_material_input">
			<div class="q-title">本年物质成本投入</div>
		<?php
			// 本年物质成本投入
			$current_year_material_input = array(
				'cost_chemical_fertilizer' => '化肥', 
				'cost_pesticide' => '农药',
				'cost_regulator' => '生长调节剂',
				'cost_organic_fertilizer' => '有机肥',
				'cost_water' => '水费',
				'cost_electric' => '电费',
				'cost_fuel' => '燃油',
				'cost_film' => '农膜',
				'cost_plastic' => '套袋',
				);
			foreach ($current_year_material_input as $key => $value) {
				echo '<div class="sub-q" id="' . $key . '">';
				echo $value . ": ";
				$input = array(
					'name' => $key,
					'value' => trim(set_value($key)),
					'size' => '8',
					'class' => 'q-text',
					'id' => $key."_input"
				 );
				echo form_input($input);
				echo " 元";
				echo "</div>";
			}
		?>
		</div>
<!-- 人工成本 -->
		<div class="q-div" name="current_year_labor_input">
			<div class="q-title">劳动力成本</div>

			<div class="sub-q" id="cost_labor">
			本年雇佣人工费用: 
			<? $input_cost_labor = array(
											'name' => 'cost_labor',
											'value' => trim(set_value('cost_labor')),
											'size' => '8',
											'class' => 'q-text',
											'id' => 'cost_labor_input');
				echo form_input($input_cost_labor); ?> 元
			</div>

			<div class="sub-q" id="local_labor_price">
				当地平均用工价格（每人每天）: 
				<? $input_local_labor_price = array(
												'name' => 'local_labor_price',
												'value' => trim(set_value('local_labor_price')),
												'size' => '5',
												'class' => 'q-text',
												'id' => 'local_labor_price_input');
					echo form_input($input_local_labor_price); ?> 元
			</div>

			<div class="sub-q" id="unpaid_labor">
				自家投入（不支付劳务费用的人工数量）: 
				<? $input_unpaid_labor = array(
												'name' => 'unpaid_labor',
												'value' => trim(set_value('unpaid_labor')),
												'size' => '5',
												'class' => 'q-text',
												'id' => 'unpaid_labor_input');
					echo form_input($input_unpaid_labor); ?> 人
			</div>
		</div>
<!-- 机械租用成本 -->
		<div class="q-div" name="cost_machine_rent">
			<div class="q-title">本年农机的租用费用</div>
			<? $input_cost_machine_rent = array(
											'name' => 'cost_machine_rent',
											'value' => trim(set_value('cost_machine_rent')),
											'size' => '10',
											'class' => 'q-text',
											'id' => 'cost_machine_rent_input');
				echo form_input($input_cost_machine_rent); ?>
			元
		</div>

<!-- 其它成本 -->
		<div class="q-div" name="others_input">
			<div class="q-title">其它成本</div>

			<div class="sub-q" id="cost_others_discription">
			投入用途: 
			<? $input_cost_others_discription = array(
											'name' => 'cost_others_discription',
											'value' => trim(set_value('cost_others_discription')),
											'size' => '15',
											'class' => 'q-text',
											'id' => 'cost_others_discription_input');
				echo form_input($input_cost_others_discription); ?>
			</div>

			<div class="sub-q" id="cost_others">
			费用: 
			<? $input_cost_others = array(
											'name' => 'cost_others',
											'value' => trim(set_value('cost_others')),
											'size' => '8',
											'class' => 'q-text',
											'id' => 'cost_others_input');
				echo form_input($input_cost_others); ?> 元
			</div>


		</div>

<!-- 下一页按钮 -->
		<div class="next-page-button" style="padding:10px;text-align:center;">
			<input type="submit" class="pure-button pure-button-primary" value="下一页">
		</div>

	</form>
</div>